package com.company.test.t1;

/**
 * @ClassName P
 * @Description TODO
 * @Author 11
 * @Date 2021/6/11 23:34
 * @Version 1.0
 */

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class P {

    public static void main(String[] args) throws IOException {
        File f=new File("src/main/java/com/company/test/t1/data.txt");
        try {
            FileInputStream in = new FileInputStream(f);
			int d=in.read();
			while(d!=-1) {
				System.out.print((char)d);
				d=in.read();
			}
        }catch(FileNotFoundException e){
            e.printStackTrace();
            System.out.println("不存在！");
        }


    }
}
